package com.zbowen.seata.provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName(value = "pay_account")
public class Account {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 账户（内部账号）
     */
    private String account;

    /**
     * 账户名称
     */
    @TableField(value = "acct_name")
    private String acctName;

    /**
     * 银行卡号
     */
    @TableField(value = "bank_code")
    private String bankCode;

    /**
     * 开户行
     */
    @TableField(value = "bank_name")
    private String bankName;

    /**
     * 余额
     */
    @TableField(value = "acct_bala")
    private BigDecimal acctBala;

    /**
     * 证件号码
     */
    @TableField(value = "id_numb")
    private String idNumb;

    /**
     * 证件类型
     */
    @TableField(value = "id_type")
    private String idType;
}
